home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsisode80_tar.Z / vmsisode80_tar / sockit / source / make.com < prev    next >
Encoding:
Text File  |  1992-01-07  |  2.4 KB  |  116 lines

  1. $ set def sockit_root:[source]
  2. $ if p1 .EQS. "CLEAN" then goto clean
  3. $ if p1 .EQS. "TIDY"  then goto tidy
  4. $ debug == ""
  5. $ if p1 .EQS. "DEBUG" then debug == p1
  6. $ options == ""
  7. $ altered == 0
  8. $!
  9. $!
  10. $ m26:
  11. $ set def [-.source]
  12. $ altered == 0
  13. $ @cc socket
  14. $ @cc insque
  15. $ @cc system
  16. $ @cc popen
  17. $ @cc index
  18. $ @cc tempnam
  19. $ @cc link
  20. $ @cc inet
  21. $ @cc bstring
  22. $ @cc tgetent
  23. $ oldoptions == options
  24. $ options == options + "/define=(vmsver=" + f$extract(1,1,f$getsyi("version")) -
  25.   + f$extract(3,1,f$getsyi("version")) + ")"
  26. $ @cc get
  27. $ options == oldoptions
  28. $ @cc dbm
  29. $ @for dbfor
  30. $ @cc ntohs
  31. $ @cc syslog
  32. $ @cc dir
  33. $ @cc fixargv
  34. $ @cc time
  35. $ @cc file
  36. $ @cc getopt
  37. $ @cc string
  38. $ @cc unix2vms
  39. $ @cc trace
  40. $ set def [.dns]
  41. $ options == "/define=DEBUG"
  42. $ @[-]cc res_comp
  43. $ @[-]cc res_debug
  44. $ @[-]cc res_init
  45. $ @[-]cc res_mkquery
  46. $ @[-]cc res_query
  47. $ @[-]cc res_send
  48. $ @[-]cc gethostnamadr
  49. $ @[-]cc getnetbyaddr
  50. $ @[-]cc getnetbyname
  51. $ @[-]cc getnetent
  52. $ @[-]cc getproto
  53. $ @[-]cc getprotoent
  54. $ @[-]cc getprotoname
  55. $ @[-]cc getservbyname
  56. $ @[-]cc getservbyport
  57. $ @[-]cc getservent
  58. $ @[-]cc herror
  59. $ @[-]cc sethostent
  60. $ set def [-]
  61. $ @mar hpwd
  62. $ @mar setuser
  63. $ @mar setuic
  64. $ @mar unix_xfr
  65. $ if f$search("[-.lib]unixlib.exe") .EQS. "" then goto m9
  66. $ if altered .NE. 0 then goto m8
  67. $ write sys$output "unixlib is up-to-date"
  68. $ exit
  69. $ m8:
  70. $ delete [-.lib]unixlib.exe;
  71. $ m9:
  72. $ write sys$output "Linking unixlib"
  73. $ dbg == ""
  74. $ if debug .EQS. "DEBUG" then dbg = "/debug"
  75. $ gosub link
  76. $ exit
  77. $ link:
  78. $ if f$trnlnm("CCOMPILER") .EQS. "GCC"
  79. $ then
  80. $ copy gnuopt.opt dummy.opt
  81. $ else
  82. $ copy opt.opt dummy.opt
  83. $ endif
  84. $ link 'dbg'/share=[-.lib]unixlib.exe -
  85.     socket,insque,system,popen,index,tempnam,link,inet,bstring,get,dbm, -
  86.     dbfor,ntohs,syslog,dir,fixargv,time,hpwd,setuser,setuic,file,getopt, -
  87.     string,unix2vms,trace,tgetent, -
  88.     [.dns]res_comp,res_debug,res_init,res_mkquery,res_query,res_send, -
  89.     gethostnamadr,getnetbyaddr,getnetbyname,getnetent,getproto, -
  90.     getprotoent,getprotoname,getservbyname,getservbyport,getservent, -
  91.     herror,sethostent, -
  92.     []psectopt/opt, -
  93.         collectopt/opt, -
  94.     dummy/opt
  95. $ delete dummy.opt;
  96. $ return
  97. $ tidy:
  98. $ purge
  99. $ purge [-.bin]
  100. $ purge [-.lib]
  101. $ purge [-.include...]
  102. $ ren dbfor.obj dbfor.xxx
  103. $ delete *.obj;,[-.bin]*.obj;,*.lis;,[.dns]*.obj;*
  104. $ ren dbfor.xxx dbfor.obj
  105. $ exit
  106. $ clean:
  107. $ purge
  108. $ purge [-.lib]
  109. $ purge [-.include...]
  110. $ purge [-.gccinclude...]
  111. $ ren dbfor.obj dbfor.xxx
  112. $ delete *.obj;,*.lis;,[-.lib]*.exe;,[.dns]*.obj;,[.dns]*.lis;
  113. $ ren dbfor.xxx dbfor.obj
  114. $ exit
  115.  
  116.